package com.zhiyou100.video.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhiyou100.video.mapper.VideoMapper;
import com.zhiyou100.video.model.Video;
import com.zhiyou100.video.service.VideoService;

@Service
@Transactional
public class VideoServiceImpl implements VideoService {

	@Autowired
	private VideoMapper videoMapper;

	@Override
	public List<Video> selectVideo(Map<String, Object> map) {
		return videoMapper.selectVideo(map);
	}

	@Override
	public int insertVideo(Video video) {
		return videoMapper.insertVideo(video);
	}

	@Override
	public Video selectVideoById(int id) {
		return videoMapper.selectVideoById(id);
	}

	@Override
	public int updateVideo(Video video) {
		return videoMapper.updateVideo(video);
	}

	@Override
	public int deleteById(String[] check) {
		return videoMapper.deleteById(check);
	}
	
}
